import request from '@/utils/request'

/**
 * 获取检验树
 * @param {Array} Search 0：检验编号 1=40 
 */
export function MySampleTree(params) {
  return request({
    url: 'API/UtilitySystemPlan/MySampleTree',
    method: 'get',
    params,
    successMsg: false, //请求成功通知，支持String & Boolean
    failMsg: true //请求失败通知，支持String & Boolean
  })
}

/**
 * 获取检验项目列表
 *
 */
export function ModelSamplePlaninfoAttribute(data) {
  return request({
    url: 'API/UtilitySystemPlan/ModelSamplePlaninfoAttribute',
    method: 'post',
    data,
    successMsg: false, //请求成功通知，支持String & Boolean
    failMsg: true //请求失败通知，支持String & Boolean
  })
}

// 
export function GetRecordReportAttributes(params) {
  return request({
    url: 'API/UtilitySystemPlan/GetRecordReportAttributes',
    method: 'get',
    params,
    successMsg: false, //请求成功通知，支持String & Boolean
    failMsg: true //请求失败通知，支持String & Boolean
  })
}

// 递交点击记录
export function UpdateSamplePlaninfoAttribute(data) {
  return request({
    url: 'API/UtilitySystemPlan/UpdateSamplePlaninfoAttribute',
    method: 'post',
    data,
    successMsg: false, //请求成功通知，支持String & Boolean
    failMsg: true //请求失败通知，支持String & Boolean
  })
}

// 获取公用系统树
export function GetMicroRecordApproveTree(params) {
  return request({
    url: 'API/UtilitySystemPlan/GetRecordApproveTree',
    method: 'get',
    params,
    successMsg: false, //请求成功通知，支持String & Boolean
    failMsg: true //请求失败通知，支持String & Boolean
  })
}

// 获取公用系统一键赋值
export function GetGYXTReportData(params) {
  return request({
    url: 'API/UtilitySystemPlan/GetGYXTReportData',
    method: 'get',
    params,
    successMsg: false, //请求成功通知，支持String & Boolean
    failMsg: true //请求失败通知，支持String & Boolean
  })
}

// 获取保存的公用系统点击记录数据
export function GetRecordReportData(params) {
  return request({
    url: 'API/UtilitySystemPlan/GetRecordReportData',
    method: 'get',
    params,
    successMsg: false, //请求成功通知，支持String & Boolean
    failMsg: true //请求失败通知，支持String & Boolean
  })
}
